/**
	implementation of DomainEnumerateWrapper
*/
#include <faif/learning/DecisionTree.hpp>
#include <boost/python.hpp>
#include <iostream>
using namespace boost::python;

template<typename T>
PyObject* DomainEnumerateWrapper<T>::convert(faif::DomainEnumerate<T> const& rv)
{
	/**
	it have inside:
	std::string id_
	list<Val> values_
	*/
	boost::python::list pyList;

	for(typename DomainEnumerate<T>::const_iterator it = rv.begin(); it != rv.end(); ++it)
	{
		std::cout << "AHA" << it->get();
		pyList.append(*it);
	}
	return incref(object(boost::python::make_tuple<std::string, boost::python::list>(rv.getId(), pyList)).ptr());
}